package com.appwoo.txtws.component;

import android.os.Environment;
import java.io.File;
import java.util.Date;

public class LogTxtw
{
  private static final String downPath = Environment.getExternalStorageDirectory().getPath() + "/download_cache";

  public static boolean isSDCard()
  {
    try
    {
      long l = new Date().getTime();
      File localFile = new File("/sdcard/" + l + ".test");
      boolean bool = localFile.createNewFile();
      localFile.delete();
      Logger.i("xjf", "sdcard can use");
      return bool;
    }
    catch (Exception localException)
    {
      localException.printStackTrace();
      Logger.i("xjf", "No SDCard!!");
    }
    return false;
  }

  // ERROR //
  public static boolean newFile(String paramString, boolean paramBoolean, android.content.Context paramContext)
    throws java.io.IOException
  {
    // Byte code:
    //   0: aload_0
    //   1: ifnull +12 -> 13
    //   4: aload_0
    //   5: ldc 91
    //   7: invokevirtual 95	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   10: ifeq +7 -> 17
    //   13: iconst_0
    //   14: istore_3
    //   15: iload_3
    //   16: ireturn
    //   17: aconst_null
    //   18: astore 4
    //   20: aconst_null
    //   21: astore 5
    //   23: new 18	java/io/File
    //   26: dup
    //   27: getstatic 43	com/appwoo/txtws/component/LogTxtw:downPath	Ljava/lang/String;
    //   30: invokespecial 64	java/io/File:<init>	(Ljava/lang/String;)V
    //   33: astore 6
    //   35: aload 6
    //   37: invokevirtual 98	java/io/File:exists	()Z
    //   40: ifne +9 -> 49
    //   43: aload 6
    //   45: invokevirtual 101	java/io/File:mkdirs	()Z
    //   48: pop
    //   49: new 103	java/io/FileWriter
    //   52: dup
    //   53: new 10	java/lang/StringBuilder
    //   56: dup
    //   57: getstatic 43	com/appwoo/txtws/component/LogTxtw:downPath	Ljava/lang/String;
    //   60: invokestatic 28	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   63: invokespecial 32	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   66: ldc 105
    //   68: invokevirtual 38	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   71: aload_2
    //   72: invokestatic 111	com/appwoo/txtws/component/Global:getTodayDate	(Landroid/content/Context;)Ljava/lang/String;
    //   75: invokevirtual 38	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   78: ldc 113
    //   80: invokevirtual 38	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   83: invokevirtual 41	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   86: iload_1
    //   87: invokespecial 116	java/io/FileWriter:<init>	(Ljava/lang/String;Z)V
    //   90: astore 7
    //   92: new 118	java/io/BufferedWriter
    //   95: dup
    //   96: aload 7
    //   98: sipush 1024
    //   101: invokespecial 121	java/io/BufferedWriter:<init>	(Ljava/io/Writer;I)V
    //   104: astore 8
    //   106: aload 8
    //   108: new 10	java/lang/StringBuilder
    //   111: dup
    //   112: ldc 123
    //   114: invokespecial 32	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   117: aload_0
    //   118: invokevirtual 38	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   121: ldc 123
    //   123: invokevirtual 38	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   126: invokevirtual 41	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   129: invokevirtual 126	java/io/BufferedWriter:write	(Ljava/lang/String;)V
    //   132: iconst_1
    //   133: istore_3
    //   134: aload 8
    //   136: ifnull +13 -> 149
    //   139: aload 8
    //   141: invokevirtual 129	java/io/BufferedWriter:flush	()V
    //   144: aload 8
    //   146: invokevirtual 132	java/io/BufferedWriter:close	()V
    //   149: aload 7
    //   151: ifnull -136 -> 15
    //   154: aload 7
    //   156: invokevirtual 133	java/io/FileWriter:close	()V
    //   159: iload_3
    //   160: ireturn
    //   161: astore 9
    //   163: getstatic 139	java/lang/System:out	Ljava/io/PrintStream;
    //   166: ldc 141
    //   168: invokevirtual 146	java/io/PrintStream:println	(Ljava/lang/String;)V
    //   171: aload 9
    //   173: athrow
    //   174: astore 10
    //   176: aload 5
    //   178: ifnull +13 -> 191
    //   181: aload 5
    //   183: invokevirtual 129	java/io/BufferedWriter:flush	()V
    //   186: aload 5
    //   188: invokevirtual 132	java/io/BufferedWriter:close	()V
    //   191: aload 4
    //   193: ifnull +8 -> 201
    //   196: aload 4
    //   198: invokevirtual 133	java/io/FileWriter:close	()V
    //   201: aload 10
    //   203: athrow
    //   204: astore 10
    //   206: aload 7
    //   208: astore 4
    //   210: aconst_null
    //   211: astore 5
    //   213: goto -37 -> 176
    //   216: astore 10
    //   218: aload 8
    //   220: astore 5
    //   222: aload 7
    //   224: astore 4
    //   226: goto -50 -> 176
    //   229: astore 9
    //   231: aload 7
    //   233: astore 4
    //   235: aconst_null
    //   236: astore 5
    //   238: goto -75 -> 163
    //   241: astore 9
    //   243: aload 8
    //   245: astore 5
    //   247: aload 7
    //   249: astore 4
    //   251: goto -88 -> 163
    //
    // Exception table:
    //   from	to	target	type
    //   49	92	161	java/io/IOException
    //   49	92	174	finally
    //   163	174	174	finally
    //   92	106	204	finally
    //   106	132	216	finally
    //   92	106	229	java/io/IOException
    //   106	132	241	java/io/IOException
  }

  public static void writeLog(String paramString1, String paramString2)
  {
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.component.LogTxtw
 * JD-Core Version:    0.6.2
 */